home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9036 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news-2.csn.net!user
  2. From: gmckee@cloudnine.com (Gary McKee)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
  4. Subject: Re: weird unchecked conversion, in C++
  5. Date: Tue, 27 Feb 1996 21:38:17 -0700
  6. Organization: McKee Consulting (Consulting in Ada)
  7. Message-ID: <AD592A499668281C19@p48.denver1.dialup.csn.net>
  8. References: <00001a73+00002504@msn.com> <4etcmm$lpd@nova.dimensional.com>       <312515DF.7D3B@cmlj.demon.co.uk> <4gad29$ddp@druid.borland.com>         <4 <dirk.824894312@demokrit> <4geuge$n56@qualcomm.com> <4gspbo$rjm@gaia.ns.utk.edu> <dewar.825427437@schonberg>
  9. NNTP-Posting-Host: 204.131.233.48
  10.  
  11. In article on "Re: C/C++ knocks the crap out of Ada"
  12. <dewar.825427437@schonberg>,dewar@cs.nyu.edu (Robert Dewar) wrote:
  13.  
  14.  > If a programmer wants to do a weird unchecked conversion, in C++ you
  15. just
  16.  > go ahead and write a cast and that's the end of it.
  17.  > 
  18.  > In Ada, you have to make a big production of things, with
  19. unchecked_Conversoin,
  20.  > instantiated it, and then use it.
  21.  > 
  22.  > Not only is this more work, but you might find some pesky rule saying
  23. that
  24.  > only certain units in the program are permitted to with
  25. Unchecked_Conversion
  26.  > (an example of top down control).
  27. --------------------------------------------------------
  28. ALSO, If a programmer wants NOT to do a weird unchecked conversion, in C++ 
  29. -----                       ---
  30.  
  31. IT'S STILL VERY EASY TO DO.
  32. ---------------------------
  33.  
  34. --------------------------------------------------------------------
  35. Gary McKee                           McKee Consulting
  36. gmckee@cloudnine.com                 P. O. Box 3009
  37. voice: (303) 795-7287                Littleton, CO 80161-3009
  38. WWW home page =>                     <http://www.csn.net/~gmckee/>
  39. --------------------------------------------------------------------
  40.